const express = require("express")

let server = express();
server.listen(8088);

// 1.接口
server.get("/", (req, res)=> {
    res.send("get request.")
})

server.post("/", (req, res)=> {
    res.send("post request.")
})

// 2. 读静态文件
server.use(express.static("./www"))

console.log("connection successful.")